package com.yonyou.brigade.ybz.model;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * 单据或交易类型实体
 *
 * @author kangfw5@yonyou.com
 * @since 2018-08-14
 */
@TableName("cnv_billtype")
public class CnvBilltype extends Model<CnvBilltype> {

    private static final long serialVersionUID = 1L;

    private String id;

    //类型：0单据类型 1交易类型
    private Boolean type;

    private String code;

    //启用状态 0停用 1启用
    private Boolean enable;

    private String name;

    //对应单据类型，为交易类型时使用
    private String classifyid;

    //关联实体ID
    private String entityid;

    private Date ts;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassifyid() {
        return classifyid;
    }

    public void setClassifyid(String classifyid) {
        this.classifyid = classifyid;
    }

    public String getEntityid() {
        return entityid;
    }

    public void setEntityid(String entityid) {
        this.entityid = entityid;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String CODE = "code";

    public static final String ENABLE = "enable";

    public static final String NAME = "name";

    public static final String CLASSIFYID = "classifyid";

    public static final String ENTITYID = "entityid";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CnvBilltype{" +
                "id=" + id +
                ", type=" + type +
                ", code=" + code +
                ", enable=" + enable +
                ", name=" + name +
                ", classifyid=" + classifyid +
                ", entityid=" + entityid +
                ", ts=" + ts +
                "}";
    }
}
